import request from "@/utils/request";

// 获取地产分类
export function getEstateList(params) {
  return request({
    url: "/categories",
    params,
  });
}

// 获取地产数量
export function getEstateNumber() {
  return request({
    url: "/categories/count",
  });
}

// 获取指定分类
export function getDetail(id) {
  return request({
    url: `/categories/${id}`,
  });
}
